import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
      token:localStorage.getItem('token') || '',
      uuid:localStorage.getItem('uuid') || -1
  },
  mutations: {
      changeStatus(state,{token,uuid}){
          console.log(token)
         state.token = token;
         state.uuid = uuid;
      }
  },
  actions: {
  },
  modules: {
  }
})
